/*
 * @Author: simba
 * @Date: 2021-05-21 10:57:10
 * @LastEditTime: 2021-05-21 11:04:52
 * @LastEditors: Please set LastEditors
 * @Description: 轮播图
 * @FilePath: \huaqing-training\js\swiper.js
 */

var imgarr = [
    "https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/5084e471aa2554867cd1c9bf333a83e4.jpg?thumb=1&w=1533&h=575&f=webp&q=90",
    "https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/a5ebb3ecd10ba5b5f1fa25125d034492.jpg?thumb=1&w=1533&h=575&f=webp&q=90",
    "https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/175b22f0032803f8bdbd94590c8c6629.jpeg?thumb=1&w=1533&h=575&f=webp&q=90",
    "https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/d2e2db65581b5977e508550ba405c436.jpg?thumb=1&w=1533&h=575&f=webp&q=90"
]
var index = 0
setInterval(function () {
    var img = document.querySelector(".swiper_img");
    img.src = imgarr[index % 4]
    index++;
}, 2500)
